package com.four.live.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author gs
 * @since 2021-12-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("lms_goods")
public class Goods extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 直播商品记录id
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * 主播id
     */
    private Integer hostId;

    /**
     * 商品图
     */
    private String goodsImgs;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品单价
     */
    private BigDecimal goodsPrice;

    /**
     * 商品规格
     */
    private Integer goodsAttr;

    /**
     * 商品分类
     */
    private Integer goodsCategory;

    /**
     * 商品下单次数
     */
    private Integer buyNums;

    /**
     * 点击次数
     */
    private Integer clickNums;

    /**
     * 商品剩余库存
     */
    private Integer goodsRemain;

    /**
     * 直播id
     */
    private Integer liveId;

}
